#!/usr/bin/env bash
YESTERDAY=`date -d last-day +%Y%m%d`

echo "昨天日期: "${YESTERDAY}

DIR1=${HOME}/tmp/00/${YESTERDAY}
DIR2=${HOME}/tmp/01/${YESTERDAY}

mkdir -p ${DIR1}
mkdir -p ${DIR2}

# 生成文件
while true
do
    touch ${DIR1}/`date +%Y%m%d%H%M%S`
    touch ${DIR2}/`date +%Y%m%d%H%M%S`
    sleep 4s
done